home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMPageTransitionEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  112 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMPageTransitionEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMPageTransitionEvent_h__
  6. #define __gen_nsIDOMPageTransitionEvent_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMEvent_h__
  10. #include "nsIDOMEvent.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMPageTransitionEvent */
  19. #define NS_IDOMPAGETRANSITIONEVENT_IID_STR "b712418b-376f-4f75-b156-5d9ad99fe51f"
  20.  
  21. #define NS_IDOMPAGETRANSITIONEVENT_IID \
  22.   {0xb712418b, 0x376f, 0x4f75, \
  23.     { 0xb1, 0x56, 0x5d, 0x9a, 0xd9, 0x9f, 0xe5, 0x1f }}
  24.  
  25. /**
  26.  * The nsIDOMPageTransitionEvent interface is used for the pageshow and
  27.  * pagehide events, which are generic events that apply to both page
  28.  * load/unload and saving/restoring a document from session history.
  29.  */
  30. class NS_NO_VTABLE nsIDOMPageTransitionEvent : public nsIDOMEvent {
  31.  public: 
  32.  
  33.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPAGETRANSITIONEVENT_IID)
  34.  
  35.   /**
  36.    * Set to true if the document has been or will be persisted across
  37.    * firing of the event.  For example, if a document is being cached in
  38.    * session history, |persisted| is true for the PageHide event.
  39.    */
  40.   /* readonly attribute boolean persisted; */
  41.   NS_IMETHOD GetPersisted(PRBool *aPersisted) = 0;
  42.  
  43.   /* void initPageTransitionEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean canCancelArg, in boolean persisted); */
  44.   NS_IMETHOD InitPageTransitionEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool canCancelArg, PRBool persisted) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIDOMPAGETRANSITIONEVENT \
  50.   NS_IMETHOD GetPersisted(PRBool *aPersisted); \
  51.   NS_IMETHOD InitPageTransitionEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool canCancelArg, PRBool persisted); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMPAGETRANSITIONEVENT(_to) \
  55.   NS_IMETHOD GetPersisted(PRBool *aPersisted) { return _to GetPersisted(aPersisted); } \
  56.   NS_IMETHOD InitPageTransitionEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool canCancelArg, PRBool persisted) { return _to InitPageTransitionEvent(typeArg, canBubbleArg, canCancelArg, persisted); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSIDOMPAGETRANSITIONEVENT(_to) \
  60.   NS_IMETHOD GetPersisted(PRBool *aPersisted) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersisted(aPersisted); } \
  61.   NS_IMETHOD InitPageTransitionEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool canCancelArg, PRBool persisted) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPageTransitionEvent(typeArg, canBubbleArg, canCancelArg, persisted); } 
  62.  
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65.  
  66. /* Header file */
  67. class nsDOMPageTransitionEvent : public nsIDOMPageTransitionEvent
  68. {
  69. public:
  70.   NS_DECL_ISUPPORTS
  71.   NS_DECL_NSIDOMPAGETRANSITIONEVENT
  72.  
  73.   nsDOMPageTransitionEvent();
  74.  
  75. private:
  76.   ~nsDOMPageTransitionEvent();
  77.  
  78. protected:
  79.   /* additional members */
  80. };
  81.  
  82. /* Implementation file */
  83. NS_IMPL_ISUPPORTS1(nsDOMPageTransitionEvent, nsIDOMPageTransitionEvent)
  84.  
  85. nsDOMPageTransitionEvent::nsDOMPageTransitionEvent()
  86. {
  87.   /* member initializers and constructor code */
  88. }
  89.  
  90. nsDOMPageTransitionEvent::~nsDOMPageTransitionEvent()
  91. {
  92.   /* destructor code */
  93. }
  94.  
  95. /* readonly attribute boolean persisted; */
  96. NS_IMETHODIMP nsDOMPageTransitionEvent::GetPersisted(PRBool *aPersisted)
  97. {
  98.     return NS_ERROR_NOT_IMPLEMENTED;
  99. }
  100.  
  101. /* void initPageTransitionEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean canCancelArg, in boolean persisted); */
  102. NS_IMETHODIMP nsDOMPageTransitionEvent::InitPageTransitionEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool canCancelArg, PRBool persisted)
  103. {
  104.     return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106.  
  107. /* End of implementation class template. */
  108. #endif
  109.  
  110.  
  111. #endif /* __gen_nsIDOMPageTransitionEvent_h__ */
  112.